INSTALLPATH=./www

all: generic.js generic_debug.js

%.js: 
	$(MAKE) -C src $@

install: index.php testfixed.html testkey.html blank.html config.php getmod.php include_gownfull.php gownfull.css
	mkdir $(INSTALLPATH) || true
	$(MAKE) -C mod $@
	$(MAKE) -C lang $@
	$(MAKE) -C help $@
	$(MAKE) -C img $@
	cp $^ $(INSTALLPATH)
	cp src/generic.js src/generic_debug.js $(INSTALLPATH)

clean:
	$(MAKE) -C src $@
	$(MAKE) -C mod $@
	$(MAKE) -C lang $@
	$(MAKE) -C help $@
	$(RM) *~
